LIBS_PATH = /home/users/cse533/Stevens/unpv13e

CC = gcc

LIBS = -lpthread\
	${LIBS_PATH}/libunp.a\

#LIBS_PATH = /home/users/mpaingankar/trunk/cse533/533asgn3/Asgn3_code

FLAGS = -g -O2

CFLAGS = ${FLAGS} -I${LIBS_PATH}/lib

all: odr client server

#send: send.o
#	${CC} -o send send.o ${LIBS_PATH}/get_hw_addrs.o ${LIBS}

#send.o: send.c
#	${CC} ${CFLAGS} -c send.c

client: client.o get_hw_addrs.o utils.o ll.o
	${CC} -o client client.o get_hw_addrs.o utils.o ll.o ${LIBS}

odr: odr.o get_hw_addrs.o utils.o ll.o
	${CC} -o odr odr.o get_hw_addrs.o utils.o ll.o ${LIBS}

server: server.o get_hw_addrs.o utils.o ll.o
	${CC} -o server server.o get_hw_addrs.o utils.o ll.o ${LIBS}

odr.o: odr.c
	${CC} ${CFLAGS} -c odr.c

utils.o: utils.c
	${CC} ${CFLAGS} -c utils.c

client.o: client.c
	${CC} ${CFLAGS} -c client.c

server.o: server.c
	${CC} ${CFLAGS} -c server.c	

get_hw_addrs.o: get_hw_addrs.c
	${CC} ${FLAGS} -c get_hw_addrs.c

ll.o: ll.c
	${CC} ${CFLAGS} -c ll.c
	

clean:
	rm ${all} *.o odr client server

